package cn.woniu.wxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName menu2
 */
@TableName(value ="menu2")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu2 implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 菜单1外键
     */
    @TableField(value = "menu1_id")
    private Long menu1Id;
    private String index;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}